// $Header: $

using System;
using System.Data;
using System.Collections.Generic;

namespace LogParser.DA
{
    /// <summary>
    /// Summary description for LogParser.DA.FlagEventTypeListModel.
    /// </summary>
    public class FlagEventTypeListModel
    {
        #region Private Member Variables

        private DA.DataObjects.FlagEventTypeDSTableAdapters.FlagEventTypeTableAdapter fta;

        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="FlagEventTypeListModel"/> class.
        /// </summary>
        public FlagEventTypeListModel( )
        {
            Initialize();
        }

        private void Initialize( )
        {
            fta = TableAdapters.FlagEventTypeTableAdapter();
        }

        #endregion

        #region Public Properties

        #endregion

        #region Private Properties

        #endregion

        #region Public Member Functions

        public List<GameObjects.FlagEventType> GetFlagEventTypeList( )
        {
            List<GameObjects.FlagEventType> returnList = new List<LogParser.GameObjects.FlagEventType>();

            DA.DataObjects.FlagEventTypeDS.FlagEventTypeDataTable fetdt = fta.GetData();

            foreach ( DA.DataObjects.FlagEventTypeDS.FlagEventTypeRow dr in fetdt.Rows )
            {
                GameObjects.FlagEventType tempFlagEvent = new LogParser.GameObjects.FlagEventType();

                tempFlagEvent.ID = dr.FlagEventTypeId;
                tempFlagEvent.LongName = dr.FlagEventLongName;
                tempFlagEvent.ShortName = dr.FlagEventShortName;

                returnList.Add( tempFlagEvent );

            }

            return returnList;

        }

        #endregion

        #region Private Member Functions

        #endregion
    }
}

#region VSS Log

/*
 * $Log: $
 */

#endregion VSS Log